package execution;

public class TapeNode {
	
	private TapeNode left, right;
	private Byte datum;
	
	public TapeNode() {
		datum = 0;
	}
	
	public TapeNode getLeft() {
		return left;
	}
	public TapeNode getRight() {
		return right;
	}
	public Byte getDatum() {
		return datum;
	}
	public void setLeft(TapeNode left) {
		this.left = left;
	}
	public void setRight(TapeNode right) {
		this.right = right;
	}
	public void setDatum(Byte datum) {
		this.datum = datum;
	}
	
	/**
	 * Ignore overflow. If overflowed, it was intentional
	 */
	public void inc() {
		this.datum++;
	}
	
	/**
	 * Ignore underflow. If underflowed, it was intentional
	 */
	public void dec() {
		this.datum--;
	}

}
